<?php

/*
Plugin Name: NG BP Replace Random Menu
Plugin URI: http://blog.ngcorp.de/downloads/bp-downloads/
Description: History: v0.1, 26-02-09 | Based one some code from burtadsit and others found here: http://pastie.org/344208 and here: http://trac.buddypress.org/ticket/174. i made a plugin to replace the more/random-menu at the adminbar of bp. take a look here: http://kommune.ngcorp.de/.
Author: ng
Version: 0.1
Author URI: http://blog.ngcorp.de
*/

function ng_bp_rep_ran_menu() {
	global $bp; ?>

<li class="align-right"><a href="<?php echo get_option('home') ?>"><?php _e( 'More', 'buddypress' ) ?></a>
<ul>

<li><a href="<?php echo get_option('home') ?>/<?php echo HOME_BLOG_SLUG ?>" title="<?php _e( 'News', 'buddypress' ) ?>"><?php _e( 'News', 'buddypress' ) ?></a></li>



<li><a href="<?php echo get_option('home') ?>/hilfe" title="<?php _e( 'Help', 'buddypress' ) ?>"><?php _e( 'Hilfeseite', 'buddypress' ) ?></a></li>
<li  class="alt"><a href="<?php echo get_option('home') ?>/about" title="<?php _e( 'About', 'buddypress' ) ?>"><?php _e( 'Über die Seite', 'buddypress' ) ?></a></li>


<li><a href="<?php echo get_option('home') ?>/<?php echo MEMBERS_SLUG ?>" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a></li>
<li class="alt"><a href="<?php echo get_option('home') ?>/<?php echo BP_GROUPS_SLUG ?>" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a></li>
<li><a href="<?php echo get_option('home') ?>/<?php echo BP_BLOGS_SLUG ?>" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a></li>


<li><a href="<?php echo get_option('home') ?>/kontakt" title="<?php _e( 'Kontakt', 'buddypress' ) ?>"><?php _e( 'Kontaktformular', 'buddypress' ) ?></a></li>
<li><a href="<?php echo get_option('home') ?>/impressum" title="<?php _e( 'Impressum', 'buddypress' ) ?>"><?php _e( 'Impressum', 'buddypress' ) ?></a></li>

	<?php

	$doing_admin_bar = false;
}

remove_action( 'bp_adminbar_menus', 'bp_adminbar_random_menu', 100 );
add_action('bp_adminbar_menus','ng_bp_rep_ran_menu',70);
?>
